/*
ID: lanxiaz1
LANG: JAVA
TASK: lonesome
*/
import java.io.*;
import java.util.Scanner;
public class lonesome
{
	public static void main(String[] args)throws Exception
	{
		BufferedReader f = new BufferedReader(new FileReader("lonesome.in"));
		PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("lonesome.out")));
		Scanner scan=new Scanner(f);
		int n=scan.nextInt();
		int[][] data=new int[n][];
		for(int i=0;i<n;i++)
		{
			int x=scan.nextInt();
			int y=scan.nextInt();
			data[i]=new int[2];
			data[i][0]=x;
			data[i][1]=y;
		}
		f.close();
		int max=0,from=0,to=0;
		for(int i=0;i<n;i++)
		{
			for(int j=i+1;j<n;j++)
			{
				int sum=(data[i][0]-data[j][0])*(data[i][0]-data[j][0])+(data[i][1]-data[j][1])*(data[i][1]-data[j][1]);
				if(max<sum)
				{
					max=sum;
					from=i;
					to=j;
				}
			}
		}
		from++;
		to++;
		out.println(from+" "+to);
		out.flush();
		out.close();
	}
}
